Argomento |
---|
Sketcher |
Livello di difficoltà |
Base |
Tempo di esecuzione |
60 minuti |
Autori |
Drei e vocx |
Versione di FreeCAD |
0.19 |
Files di esempio |
Basic Sketcher tutorial updated |
Vedere anche |
Nessuno |
Questo tutorial ha lo scopo di introdurre il lettore al flusso di lavoro di base dell'ambiente Schizzo.
L'ambienteSketcher esiste come modulo autonomo, quindi può essere utilizzato per disegnare oggetti 2D generici (planari). Tuttavia, viene utilizzato principalmente in combinazione con PartDesign. Uno schizzo chiuso viene normalmente utilizzato per creare una faccia o un profilo da estrudere in un corpo solido con un'operazione come
Pad di PartDesign .
Il lettore farà pratica su:
Per una descrizione più approfondita dello sketcher, leggere il Manuale di riferimento per Sketcher.
Risultato finale dello schizzo, con tutta la geometria completamente vincolata, inclusa la geometria di costruzione per il supporto.
1. Open FreeCAD, create a new empty document with File → New.
Some actions to remember:
2. Click on New sketch.
Siamo ora nella modalità di modifica dello schizzo. Al suo interno, è possibile utilizzare la maggior parte degli strumenti di questo ambiente di lavoro.
Nota: la vista ad albero passa alla scheda azioni; in questa interfaccia espandere la sezione Modifica controlli e assicurarsi che l'opzione Vincoli automatici sia abilitata. Altre opzioni possono essere modificate inclusa la dimensione della griglia visibile e se si vuole agganciarla; in questo tutorial non ci agganceremo alla griglia e la nasconderemo anche. In altre sezioni della scheda azioni si può anche vedere quali elementi geometrici e vincoli sono stati definiti.
Upper part of the task panel of the sketcher.
Note: up to this point the line tool is still active. This means we can keep clicking on the 3D view to draw as many lines as we want. If we wish to exit this tool, we can press the right mouse button, or press Esc in the keyboard once. By doing this the pointer won't create lines any more, it will just be a pointer allowing us to select the objects we just created. In this pointer mode we can pick and drag the endpoints of each line to adjust its placement.
Note 2: do not press Esc a second time as this will exit the sketch edit mode. If you do this, re-enter the edit mode by double clicking on the sketch in the tree view.
Take a look at the task panel again. The Solver messages section already indicates that the sketch is under-constrained, and it mentions the number of degrees of freedom.
Look at the Constraints and Elements sections to see the new listed constraints and lines. Once your sketches have many elements, it may be difficult to select them in the 3D view, so you can use these lists to select the object that you wish exactly.
Construction lines forming a star shape with its center in the origin.
La geometria reale deve creare una forma chiusa se deve essere utilizzata come profilo che può essere estruso da strumenti come Pad di PartDesign.
Make sure you are not in construction mode by clicking on Toggle construction, if you have not previously exited this mode.
4. Create a circle.
8 mm
. Again the dimension will be fixed later.5. Create a series of arcs.
8 mm
.180°
or half a circle.Circular arcs added at the endpoints of the construction lines. Also a central circle.
6. Creare un arco tra ogni coppia degli archi O precedenti.
To summarize, the O-arcs should have their curvature pointing outwards, and their concavity pointing towards the origin of the sketch; the I-arcs should have their curvature pointing inwards, and their concavity pointing away from the same origin.
Circular arcs added between the first set of arcs placed.
Take a look at the task panel again. Due to the new geometrical elements that we have drawn, the Solver messages section indicates even more degrees of freedom. A degree of freedom (DOF) indicates a possible movement of one element. For example, a point can be moved both in horizontal and vertical directions, so it has two degrees of freedom. A line is defined by two points, therefore in total it has four degrees of freedom. If we fix one of those points, then the entire system has only two degrees of freedom available; if we additionally fix the horizontal movement of the remaining point, we only have one degree of freedom left; and if we also fix the vertical movement of this point, then the last degree of freedom disappears, and the line cannot move from its position any more.
Finora quando abbiamo disegnato linee e curve, lo sketcher ha aggiunto per noi i vincoli automatici, quelli che mantengono le linee legate all'origine e gli archi O legati alle linee di costruzione. Ma non abbiamo aggiunto altri vincoli espliciti in modo che le forme geometriche possano ancora essere spostate in molte direzioni. I vincoli sono "regole" che ci dicono in quali condizioni un oggetto geometrico può muoversi e di quanto. Sono usati per eliminare i gradi di libertà in modo che lo schizzo abbia una forma stabile. Se eliminiamo tutti i gradi di libertà, lo schizzo è completamente vincolato e ha una forma fissa, ovvero i suoi punti non possono spostarsi affatto. In generale, è una buona idea vincolare completamente gli schizzi perché ciò si riflette in modelli stabili.
There are two principal types of constraints:
Note: as you add constraints, overlay symbols indicating the type of constraint appear over the geometry in the 3D view. If these symbols obfuscate your view, you can hide them by unchecking the constraint in the task panel. Also note that the number of degrees of freedom decreases after adding each constraint.
Note 2: if you wish to temporarily disable the constraint, you may select it and press Toggle active constraint. When you want to apply it again, press again the same button.
Sketch with equality constraints applied to the construction lines, and to the two sets of arcs.
Note: applying the tangential constraint very often will move the geometry around in order to produce a smooth connection. You may have to use the pointer to reposition the points a bit before applying the next tangential constraint. Try placing the endpoints in such a way that two arcs aren't too far apart, so they can be connected with a short line rather than a long line.
A questo punto, il profilo è chiuso e può essere regolato con le dimensioni desiderate.
Sketch with tangential constraints applied to the arcs, which closes the shape.
These constraints specify the numerical distances between two points, and angles between two lines.
Sketch with length constraint applied to one vertical construction line (left), and angle constraints to three pairs of construction lines (right).
11. Regolare la dimensione degli archi.
8 mm
. Poiché tutti gli archi O sono vincolati per avere lo stesso raggio, tutti questi archi regolano le loro dimensioni contemporaneamente.11 mm
. Poiché tutti gli archi O sono vincolati per avere lo stesso raggio, tutti questi archi regolano le loro dimensioni contemporaneamente.Sketch with radius constraints applied to the outwards arcs (left), and inwards arcs (right).
8 mm
.Alla fine si dovrebbe ottenere uno schizzo completamente vincolato. Questo può essere confermato dal cambio di colore della geometria reale e dal messaggio che viene mostrato nella scheda azioni.
Sketch with all geometrical and datum constraints applied.
12. Now that we have a fully constrained sketch, it can be used to create a solid body.
Left: fully constrained sketch with only the most important constraints showing. Right: solid extrusion produced with PartDesign Pad.
For a more in depth description of the sketcher, visit the Sketcher Workbench documentation and also read the Sketcher Lecture.
Constraining a sketch can be done in many different ways. In general, it is recommended to use geometrical constraints first, and minimize the number of datum constraints, as this simplifies the task of the internal constraint solver. To investigate this, repeat this example, now adding the constraints in different order.